<include file="common/hearder"/>
<div style="margin-left: 30%;color: #2b542c">
    <h2>即时入职，面试通知</h2>
</div>
<br><br><br>
<div class="col-xs-12 col-sm-6 col-md-8">
    <form class="form-horizontal" method="post">
        <div class="form-group">
            <label for="inputEmail4" class="col-sm-2 control-label">选择面试人：</label>
            <div class="col-sm-10">
                <div class="col-sm-10">
                    <select  class="form-control" name="rmn_men">
                        <option>请选择：</option>
                        <foreach name="rest" item="rst">
                            <option value="{$rst.rmn_id}">{$rst.preson}</option>
                        </foreach>
                    </select>
                </div>
           </div>
        </div>
        <br><br>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">面试时间：</label>
            <div class="col-sm-10">
                <input type="datetime-local" name="itw_time" class="form-control" id="inputPassword3" placeholder="time">
            </div>
        </div>
        <br><br>
        <div class="form-group">
            <label for="inputEmail1" class="col-sm-2 control-label">面试地点：</label>
            <div class="col-sm-10">
                <select class="form-control" name="itw_adress">
                    <option>请选择：</option>
                    <option>重庆足下软件学院</option>
                    <option>大学城站南环路231号</option>
                    <option>西永政府斜对面即时上班</option>
                </select>
            </div>
        </div>
        <br><br>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">面试岗位：</label>
            <div class="col-sm-10">
                <input type="text" name="itw_post"  value="{$rst.rmd_intention}" class="form-control" id="inputEmail4" placeholder="">
            </div>
        </div>
        <br><br>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">面试官：</label>
            <div class="col-sm-10">
                <select class="form-control"name="stf_id" >
                    <option>请选择：</option>
                    <foreach name="sta" item="st">
                        <option value="{$st.pt_id}">{$st.pt_name}</option>
                    </foreach>
                </select>
            </div>
        </div>
        <br><br>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">面试情况：</label>
            <div class="col-sm-10">
                <label class="radio-inline">
                    <input type="radio"  name="status" id="inlineRadio1" value="1">已完成
                </label>
                <label class="radio-inline">
                    <input type="radio" checked="checked" name="status" id="inlineRadio2" value="0">进行中
                </label>
            </div>
        </div>
        <br>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">状态：</label>
            <div class="col-sm-10">
                <label class="radio-inline">
                    <input type="radio" checked="checked"  name="states" id="inlineRadio3" value="1"> 启用
                </label>
                <label class="radio-inline">
                    <input type="radio" name="states" id="inlineRadio4" value="0"> 未启用
                </label>
            </div>
        </div>
        <br>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">简历ID：</label>
            <div class="col-sm-10">
                <input type="text" name="rmn_id" value="{$rst['rmn_id']}" class="form-control" id="inputEmail9" placeholder="">
            </div>
        </div>
        <br>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <input type="hidden" name="submit" value="1">
                <button type="submit" class="btn btn-default">通知面试</button>
              <a class="btn btn-default" href="{:U('index')}">返回上一页</a>
            </div>
        </div>
    </form>
</div>
<script>
    $('select[name="rmn_men"]').change(function () {
        var rmn_id=$(this).val();
        $.get('{:U("Interviewinfo/submit_api")}?rmn_id='+rmn_id,function (data) {
            console.log(data);
            $('input[name="itw_post"]').val(data['rmd_intention']);
            $('input[name="rmn_id"]').val(data['rmn_id']);
        });
    })
</script>
<include file="common/footer"/>